﻿using System.Web.Mvc;
using Microsoft.Practices.Unity;


namespace Deixei.Infrastructure
{
    public class UnityDependencyResolver : UnityDependencyScope, IDependencyResolver
    {
        public UnityDependencyResolver(IUnityContainer container, IDependencyResolver resolver)
            : base(container, resolver)
        {
        }

        //public IDependencyScope BeginScope()
        //{
        //    var childContainer = Container.CreateChildContainer();

        //    return new UnityDependencyScope(childContainer, base.Resolver);
        //}
    }  
}
